/*
 * common.cpp
 *
 *  Created on: 2013-2-5
 *      Author: tangwu
 */

#include <string.h>
#include <errno.h>
#include <stdio.h>
#include "common.h"

extern int errno;
void log2stderr(const char* file, int line ){
	fprintf(stdout, "error ! file:%s line:%d\nmsg:%s", file, line, strerror(errno));
}
